package jwdt.xadmin.finace.bean;

import com.ezerg.db.Jdb;
import com.ezerg.db.annotation.Column;
import com.ezerg.db.annotation.Table;

@Table(name="ha_flmx", keys={"fldm", "mxdm"}, comment="分类明细")
public class HaFlmx implements java.io.Serializable {

	private static final long serialVersionUID = 1L;

	@Column(value="fldm", comment="分类代码")
	private String fldm = "";
	
	@Column(value="mxdm", comment="明细代码")
	private String mxdm = "";
	
	@Column(value="mxmc", comment="明细名称")
	private String mxmc = "";
	
	@Column(value="px", comment="排序")
	private Integer px;

	public String getFlmc() {
		return (String)Jdb.get().uniqueResult("select flmc from ha_fl where fldm='"+fldm+"'");
	}
	
	public String getFldm() {
		return fldm;
	}

	public void setFldm(String fldm) {
		this.fldm = fldm;
	}

	public String getMxmc() {
		return mxmc;
	}

	public void setMxmc(String mxmc) {
		this.mxmc = mxmc;
	}

	public String getMxdm() {
		return mxdm;
	}

	public void setMxdm(String mxdm) {
		this.mxdm = mxdm;
	}
	
	public Integer getPx() {
		return px;
	}

	public void setPx(Integer px) {
		this.px = px;
	}

}
